package com.jwsoft.manager.common.enums;
/**
 * @author chenz
 * @date 2022-03-10
 * @description
 **/
public enum PersonInformationTypeEnum {
    fc("fc", "房产"),
    hj("hj", "户籍"),
    sb("sb", "社保"),
    jzz("jzz", "居住证"),
    wq("wq", "购房合同"),
    qy("qy", "企业"),
    jhz("jhz", "结婚证"),
    csz("csz", "出生证");

    private String type;
    private String name;

    PersonInformationTypeEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public String getName() {
        return this.name;
    }

    public static PersonInformationTypeEnum getByType(String type) {

        for (PersonInformationTypeEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
